// 装饰器用法
// 装饰器本身是一个函数
// 装饰器通过@符号来使用

// function getNameDecorator(target: any, key: string) {
//     console.log('方法: ', target, '方法名称: ', key);
// }
// class Teacher {
//     constructor(private name: string) { }
//     @getNameDecorator
//     static getName() {
//         return '123'
//     }
// }
// let p = new Teacher('zs')
// console.log(Teacher.getName());

function logParams(params: any) {
    return function (target: any, methodName: any, paramsIndex: any) {
        console.log(params);
        console.log(target);
        console.log(methodName);
        console.log(paramsIndex);
    };
}
class HttpClient {
    public url: any | undefined;
    constructor() {}
    getDate(@logParams('xxx') uuid: any) {
        console.log(uuid);
    }
}
let http = new HttpClient();
http.getDate('zs');

export default {};
